package demo02;

public class BaoZhuang {
    public static void main(String[] args) {
        //int=Integer
        //char=Charater
        Integer il=new Integer(34);
        Integer i2=new Integer("1");
        System.out.println(i2);//1
        System.out.println(il);//1
        Integer i3=new Integer("a");
        System.out.println(i3);//编译错误
        Double d1=new Double(34.67);
        Character ch1=new Character('h');
        System.out.println(ch1);//h
        Character ch2=new Character('h');
        System.out.println(ch2);//h
//        Integer i3=new Integer(null);
//        System.out.println(i3);//编译错误
        Boolean b1=new Boolean(true);
        Boolean b2=new Boolean("true");
        Boolean b3=new Boolean("tRUe");
        Boolean b4=new Boolean("LOVE");//除了true,其他都是false
        System.out.println(b1);
        System.out.println(b2);
        System.out.println(b3);
        System.out.println(b4);

    }
}
